using System;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using ICP_MS.Plugin.Advance.Properties;
using ZedGraph;

namespace ICP_MS.Plugin.Advance;

public class FormVacuum : Form
{
	private ushort[] freqs = new ushort[2];

	private int bTestFlag = 0;

	public EventHandler ValveErrorEvent;

	private bool bStartVacuumCheck = false;

	private IContainer components = null;

	private GroupBox groupBox3;

	private GroupBox gbTurbo2;

	private PictureBox picTurboStatus2;

	private System.Windows.Forms.Label lblStatus2;

	private TextBox txtBearing2;

	private System.Windows.Forms.Label lblBearing2;

	private TextBox txtCurrent2;

	private System.Windows.Forms.Label lblCurrent2;

	private TextBox txtVolt2;

	private System.Windows.Forms.Label lblVolt2;

	private TextBox txtTemperature2;

	private System.Windows.Forms.Label lblTemperature2;

	private TextBox txtFrequency2;

	private System.Windows.Forms.Label lblFrequency2;

	private GroupBox gbControl;

	private Button btnResetTurbo;

	private Button btnCloseTurbo;

	private Button btnOpenTurbo;

	private GroupBox gbTurbo1;

	private PictureBox picTurboStatus1;

	private System.Windows.Forms.Label lblStatus1;

	private TextBox txtBearing1;

	private System.Windows.Forms.Label lblBearing1;

	private TextBox txtCurrent1;

	private System.Windows.Forms.Label lblCurrent1;

	private TextBox txtVolt1;

	private System.Windows.Forms.Label lblVolt1;

	private TextBox txtTemperature1;

	private System.Windows.Forms.Label lblTemperature1;

	private TextBox txtFrequency1;

	private System.Windows.Forms.Label lblFrequency1;

	private ToolTip toolTipTurbo;

	private GroupBox gbValve;

	private Button btnClose;

	private Button btnOpen;

	private GroupBox groupBox1;

	private Button btnCloseValve;

	private Button btnOpenValve;

	private TextBox txtWarnning;

	private GroupBox gbControl1;

	private System.Windows.Forms.Label lblVersion;

	private GroupBox groupBox2;

	private TextBox txtCount;

	private System.Windows.Forms.Label label1;

	private Button btnStop;

	private Button btnTest;

	private Button button1;

	private GroupBox gbGauge;

	private Button btnCloseGauge;

	private Button btnOpenGuage;

	private Panel panel1;

	private TabControl tabControl1;

	private TabPage tabPage1;

	private TabPage tabPage2;

	private Panel panel2;

	private GroupBox groupBox6;

	private GroupBox groupBox5;

	private GroupBox groupBox4;

	private Button btnTest1;

	private System.Windows.Forms.Label label5;

	private TextBox txtVacuumInt;

	private System.Windows.Forms.Label label3;

	private Button btnTest3;

	private TextBox txtVacuumAll;

	private System.Windows.Forms.Label label2;

	private Button btnTest2;

	private TextBox txtVacuumLens;

	private ZedGraphControl graphLens;

	private ZedGraphControl graphInt;

	private Button btnStop1;

	private Button btnStop2;

	private Button btnStop3;

	private GroupBox groupBox7;

	private System.Windows.Forms.Label label6;

	private System.Windows.Forms.Label label4;

	private TextBox txtLensVacuumRate;

	private TextBox txtIntVacuumRate;

	private GroupBox groupBox9;

	private ListBox listResult;

	private GroupBox groupBox8;

	private ListBox listProcess;

	public FormVacuum()
	{
		InitializeComponent();
	}

	private void FormVacuum_Load(object sender, EventArgs e)
	{
		base.WindowState = FormWindowState.Maximized;
		ApplyResources();
		toolTipTurbo.SetToolTip(picTurboStatus1, Lang.Txt("FormVaccum.Turbo.Status.Unconnected.Text"));
		toolTipTurbo.SetToolTip(picTurboStatus2, Lang.Txt("FormVaccum.Turbo.Status.Unconnected.Text"));
		UserManager.UserChanged += UserManager_UserChanged;
		graphInt.GraphPane.Title.Text = Lang.Txt("ADD.Vaccum.Leak.InterfaceVacuum");
		graphLens.GraphPane.Title.Text = Lang.Txt("ADD.Vaccum.Leak.LensVacuum");
		graphInt.GraphPane.XAxis.Title.Text = Lang.Txt("ADD.Vaccum.Leak.Time");
		graphInt.GraphPane.YAxis.Title.Text = Lang.Txt("ADD.Vaccum.Leak.InterfaceVacuum");
		graphLens.GraphPane.XAxis.Title.Text = Lang.Txt("ADD.Vaccum.Leak.Time");
		graphLens.GraphPane.YAxis.Title.Text = Lang.Txt("ADD.Vaccum.Leak.LensVacuum");
		graphInt.GraphPane.AddCurve(Lang.Txt("ADD.Vaccum.Leak.InterfaceVacuum"), new PointPairList(), Color.Blue, SymbolType.None);
		graphLens.GraphPane.AddCurve(Lang.Txt("ADD.Vaccum.Leak.LensVacuum"), new PointPairList(), Color.Blue, SymbolType.None);
		graphInt.GraphPane.XAxis.Type = AxisType.Date;
		graphLens.GraphPane.XAxis.Type = AxisType.Date;
		PermissionManagement();
		Task.Factory.StartNew(ThreadRefreshVacuumStatus);
		RefreshGraph();
	}

	private void ApplyResources()
	{
		Text = Lang.Txt("FormVaccum.GroupBox.Turbo.Text");
		gbControl.Text = Lang.Txt("FormVaccum.Control.Text");
		gbControl1.Text = Lang.Txt("FormVaccum.GroupBox.SpoolValveControl.Text");
		groupBox1.Text = Lang.Txt("FormVaccum.GroupBox.SpoolValve.Text");
		groupBox3.Text = Lang.Txt("FormVaccum.GroupBox.Turbo.Text");
		gbValve.Text = Lang.Txt("FormVaccum.GroupBox.ReleaseGas.Text");
		lblFrequency1.Text = Lang.Txt("FormVaccum.Turbo.Freq.Text");
		lblVolt1.Text = Lang.Txt("FormVaccum.Turbo.Voltage.Text");
		lblBearing1.Text = Lang.Txt("FormVaccum.Turbo.NSK.Text");
		lblTemperature1.Text = Lang.Txt("FormVaccum.Turbo.Temperature.Text");
		lblCurrent1.Text = Lang.Txt("FormVaccum.Turbo.Current.Text");
		lblStatus1.Text = Lang.Txt("FormVaccum.Turbo.Status.Text");
		lblFrequency2.Text = Lang.Txt("FormVaccum.Turbo.Freq.Text");
		lblVolt2.Text = Lang.Txt("FormVaccum.Turbo.Voltage.Text");
		lblBearing2.Text = Lang.Txt("FormVaccum.Turbo.NSK.Text");
		lblTemperature2.Text = Lang.Txt("FormVaccum.Turbo.Temperature.Text");
		lblCurrent2.Text = Lang.Txt("FormVaccum.Turbo.Current.Text");
		lblStatus2.Text = Lang.Txt("FormVaccum.Turbo.Status.Text");
		btnOpenTurbo.Text = Lang.Txt("FormVaccum.Button.OpenTurbo.Text");
		btnCloseTurbo.Text = Lang.Txt("FormVaccum.Button.CloseTurbo.Text");
		btnResetTurbo.Text = Lang.Txt("FormVaccum.Buttom.Reset.Text");
		btnOpen.Text = Lang.Txt("FormVaccum.Button.Open.Text");
		btnClose.Text = Lang.Txt("FormVaccum.Button.Close.Text");
		btnOpenValve.Text = Lang.Txt("FormVaccum.Button.OpenValve.Text");
		btnCloseValve.Text = Lang.Txt("FormVaccum.Button.CloseValve.Text");
		tabControl1.TabPages[0].Text = Lang.Txt("ADD.Vaccum.Text1");
		tabControl1.TabPages[1].Text = Lang.Txt("ADD.Vaccum.Text2");
		gbGauge.Text = Lang.Txt("ADD.Vaccum.Control.HighGauge");
		btnOpenGuage.Text = Lang.Txt("ADD.Vaccum.Control.Open");
		btnCloseGauge.Text = Lang.Txt("ADD.Vaccum.Control.Colse");
		groupBox2.Text = Lang.Txt("ADD.Vaccum.Control.SpoolTest");
		label1.Text = Lang.Txt("ADD.Vaccum.Control.Number");
		btnTest.Text = Lang.Txt("ADD.Vaccum.Control.Test");
		btnStop.Text = Lang.Txt("ADD.Vaccum.Control.Stop");
		button1.Text = Lang.Txt("ADD.Vaccum.Control.TestAfterIgnition");
		groupBox5.Text = Lang.Txt("ADD.Vaccum.Leak.CavityLeaks");
		groupBox4.Text = Lang.Txt("ADD.Vaccum.Leak.InterfaceLeak");
		groupBox6.Text = Lang.Txt("ADD.Vaccum.Leak.OverallLeak");
		groupBox7.Text = Lang.Txt("ADD.Vaccum.Leak.RateChange");
		groupBox8.Text = Lang.Txt("ADD.Vaccum.Leak.Progress");
		groupBox9.Text = Lang.Txt("ADD.Vaccum.Leak.Result");
		label2.Text = Lang.Txt("ADD.Vaccum.Leak.LensUpperLimit");
		label3.Text = Lang.Txt("ADD.Vaccum.Leak.LensUpperLimit");
		label5.Text = Lang.Txt("ADD.Vaccum.Leak.InterfaceUpperLimit");
		label4.Text = Lang.Txt("ADD.Vaccum.Leak.InterfaceVacuum");
		label6.Text = Lang.Txt("ADD.Vaccum.Leak.LensVacuum");
		btnTest1.Text = Lang.Txt("ADD.Vaccum.Leak.Begin");
		btnTest2.Text = Lang.Txt("ADD.Vaccum.Leak.Begin");
		btnTest3.Text = Lang.Txt("ADD.Vaccum.Leak.Begin");
		btnStop1.Text = Lang.Txt("ADD.Vaccum.Leak.Stop");
		btnStop2.Text = Lang.Txt("ADD.Vaccum.Leak.Stop");
		btnStop3.Text = Lang.Txt("ADD.Vaccum.Leak.Stop");
	}

	private void UserManager_UserChanged(object sender, EventArgs e)
	{
		PermissionManagement();
	}

	private void btnOpenTurbo_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewTurboOn();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.TurnOnPump"), "", (Severity)1);
	}

	private void btnCloseTurbo_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewTurboOff();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.TurnOffPump"), "", (Severity)1);
	}

	private void btnResetTurbo_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewTurboReset();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.ResetPump"), "", (Severity)1);
	}

	private void FormVacuum_FormClosing(object sender, FormClosingEventArgs e)
	{
		UserManager.UserChanged -= UserManager_UserChanged;
	}

	private bool GetBit(ushort value, int index)
	{
		int tmp = 1 << index;
		return (value & tmp) == tmp;
	}

	private void ThreadRefreshVacuumStatus()
	{
		while (!base.IsDisposed)
		{
			try
			{
				TurboRefresh(1, Vacuum.turbo1);
				TurboRefresh(2, Vacuum.turbo2);
				RefreshVacuumStatus();
			}
			catch
			{
			}
			Thread.Sleep(2000);
		}
	}

	private void TurboRefresh(int index, TurboStatus e)
	{
		Invoke((MethodInvoker)delegate
		{
			try
			{
				if (Vacuum.vacumm.StatusOnline)
				{
					int num = index;
					if (GetBit(e.PZD1, 8))
					{
						TextBox textBox = ((num == 1) ? txtFrequency1 : txtFrequency2);
						TextBox textBox2 = ((num == 1) ? txtTemperature1 : txtTemperature2);
						TextBox textBox3 = ((num == 1) ? txtVolt1 : txtVolt2);
						TextBox textBox4 = ((num == 1) ? txtCurrent1 : txtCurrent2);
						TextBox textBox5 = ((num == 1) ? txtBearing1 : txtBearing2);
						PictureBox pictureBox = ((num == 1) ? picTurboStatus1 : picTurboStatus2);
						pictureBox.Image = Resources.led_Gray;
						toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.Connected.Text"));
						textBox.Text = e.PZD2.ToString();
						textBox2.Text = e.PZD3.ToString();
						textBox5.Text = e.PZD5.ToString();
						textBox3.Text = e.PZD6.ToString();
						textBox4.Text = ((double)(int)e.PZD4 * 0.1).ToString("F2");
						if (GetBit(e.PZD1, 4))
						{
							pictureBox.Image = Resources.UpArrow;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.SpeedFast.Text"));
						}
						if (GetBit(e.PZD1, 5))
						{
							pictureBox.Image = Resources.DownArrow;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.SpeedSlow.Text"));
						}
						if (GetBit(e.PZD1, 10))
						{
							pictureBox.Image = Resources.led_Green;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.WorkingNormal.Text"));
						}
						if (GetBit(e.PZD1, 7))
						{
							pictureBox.Image = Resources.led_Yello;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.TemperatureWarn.Text"));
						}
						if (GetBit(e.PZD1, 3))
						{
							pictureBox.Image = Resources.led_Red;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.Error.Text"));
						}
						if (GetBit(e.PZD1, 12))
						{
							pictureBox.Image = Resources.led_Red;
							toolTipTurbo.SetToolTip(pictureBox, Lang.Txt("FormVaccum.Turbo.Status.CommunicationError.Text"));
						}
					}
					else
					{
						TextBox textBox6 = ((num == 1) ? txtFrequency1 : txtFrequency2);
						TextBox textBox7 = ((num == 1) ? txtTemperature1 : txtTemperature2);
						TextBox textBox8 = ((num == 1) ? txtVolt1 : txtVolt2);
						TextBox textBox9 = ((num == 1) ? txtCurrent1 : txtCurrent2);
						TextBox textBox10 = ((num == 1) ? txtBearing1 : txtBearing2);
						PictureBox pictureBox2 = ((num == 1) ? picTurboStatus1 : picTurboStatus2);
						pictureBox2.Image = Resources.Unlink;
						toolTipTurbo.SetToolTip(pictureBox2, Lang.Txt("FormVaccum.Turbo.Status.Unconnected.Text"));
						textBox6.Text = "";
						textBox7.Text = "";
						textBox10.Text = "";
						textBox8.Text = "";
						textBox9.Text = "";
					}
				}
			}
			catch
			{
			}
		});
	}

	private void RefreshVacuumStatus()
	{
		StringBuilder sb = new StringBuilder();
		int flag = Vacuum.lastWarnning.WarnState;
		if (GetBit((ushort)flag, 1))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error1.Text"));
			bTestFlag = 1;
		}
		if (GetBit((ushort)flag, 2))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error2.Text"));
			bTestFlag = 2;
		}
		if (GetBit((ushort)flag, 3))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error3.Text"));
		}
		if (GetBit((ushort)flag, 4))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error4.Text"));
		}
		if (GetBit((ushort)flag, 5))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error5.Text"));
		}
		if (GetBit((ushort)flag, 6))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error6.Text"));
		}
		if (GetBit((ushort)flag, 7))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error7.Text"));
		}
		if (GetBit((ushort)flag, 8))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error8.Text"));
		}
		if (GetBit((ushort)flag, 10))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error10.Text"));
		}
		if (GetBit((ushort)flag, 11))
		{
			sb.AppendLine(Lang.Txt("FormVaccum.Valve.Error11.Text"));
		}
		Invoke((MethodInvoker)delegate
		{
			txtWarnning.Text = sb.ToString();
			uint num = Vacuum.vacumm.ReadVacuumVersion[0] + (Vacuum.vacumm.ReadVacuumVersion[1] << 8) + (Vacuum.vacumm.ReadVacuumVersion[2] << 16) + (Vacuum.vacumm.ReadVacuumVersion[3] << 24);
			string[] array = new string[4] { "0", "0", "0", "0" };
			array[0] = (num % 1000).ToString();
			array[1] = (num / 1000 % 1000).ToString();
			array[2] = (num / 1000000 % 1000).ToString();
			array[3] = (num / 1000000000).ToString();
			lblVersion.Text = "V" + array[3] + array[2] + "." + array[1] + "." + array[0];
		});
	}

	private void btnOpen_Click(object sender, EventArgs e)
	{
		freqs[0] = Vacuum.turbo1.PZD2;
		freqs[1] = Vacuum.turbo2.PZD2;
		if (freqs[0] > 0 || freqs[1] > 0 || PowerManager.powerStatus.ReadP4)
		{
			DialogResult result = MessageBox.Show(Lang.Txt("AddFormVacuum.OffMessage"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.YesNo);
			if (result == DialogResult.No)
			{
				return;
			}
		}
		Vacuum.Instance.NewVentOn();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.PumpDeflation"), "", (Severity)1);
	}

	private void btnClose_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewVentOff();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.PumpShutsOff"), "", (Severity)1);
	}

	private void btnOpenValve_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewValveOn();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.OpenSpool"), "", (Severity)1);
	}

	private void btnCloseValve_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewValveOff();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.CloseSpool"), "", (Severity)1);
	}

	private void PermissionManagement()
	{
		if (UserManager.CurrentUser.authority <= 1)
		{
			gbControl.Visible = false;
			gbValve.Visible = false;
			gbControl1.Visible = false;
			groupBox2.Visible = false;
		}
		else
		{
			gbControl.Visible = true;
			gbValve.Visible = true;
			gbControl1.Visible = true;
			groupBox2.Visible = true;
		}
	}

	private void btnTest1_Click(object sender, EventArgs e)
	{
		if (Vacuum.vacumm.ReadMode == 5)
		{
			using (FormVacuumTest formvaccum = new FormVacuumTest())
			{
				formvaccum.ShowDialog();
			}
		}
	}

	private void btnTest_Click(object sender, EventArgs e)
	{
		if (Vacuum.vacumm.ReadMode != 0)
		{
			MessageBox.Show(Lang.Txt("AddFormVacuum.Text1"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
			return;
		}
		int count = 0;
		int sum = 0;
		bTestFlag = 0;
		try
		{
			count = int.Parse(txtCount.Text);
			sum = count;
		}
		catch
		{
			MessageBox.Show(Lang.Txt("AddFormVacuum.Text2"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
			return;
		}
		Task.Factory.StartNew(delegate
		{
			do
			{
				if (bTestFlag != 0)
				{
					if (bTestFlag == 1)
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error1.Text"));
					}
					else if (bTestFlag == 2)
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error2.Text"));
					}
					else
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.StopTest"));
					}
					break;
				}
				Vacuum.Instance.NewValveOn();
				for (int i = 0; i < 5; i++)
				{
					if (bTestFlag != 0)
					{
						if (bTestFlag == 1)
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error1.Text"));
						}
						else if (bTestFlag == 2)
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error2.Text"));
						}
						else
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.StopTest"));
						}
						return;
					}
					Thread.Sleep(1000);
				}
				if (bTestFlag != 0)
				{
					if (bTestFlag == 1)
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error1.Text"));
					}
					else if (bTestFlag == 2)
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error2.Text"));
					}
					else
					{
						MessageBox.Show(Lang.Txt("AddFormVacuum.StopTest"));
					}
					break;
				}
				Vacuum.Instance.NewValveOff();
				for (int j = 0; j < 5; j++)
				{
					if (bTestFlag != 0)
					{
						if (bTestFlag == 1)
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error1.Text"));
						}
						else if (bTestFlag == 2)
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.At") + (sum - count + 1) + Lang.Txt("AddFormVacuum.Th") + Lang.Txt("FormVaccum.Valve.Error2.Text"));
						}
						else
						{
							MessageBox.Show(Lang.Txt("AddFormVacuum.StopTest"));
						}
						return;
					}
					Thread.Sleep(1000);
				}
			}
			while (count-- != 0);
		});
	}

	private void btnStop_Click(object sender, EventArgs e)
	{
		bTestFlag = -1;
	}

	private void btnOpenGuage_Click(object sender, EventArgs e)
	{
		if (Vacuum.vacumm.ReadVacuum[1] < 0.1)
		{
			Vacuum.Instance.NewGaugeOn();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.OpenHighGauge"), "", (Severity)1);
		}
		else if (MessageBox.Show(Lang.Txt("AddFormIonSource.TipsText1"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.YesNo) == DialogResult.Yes)
		{
			Vacuum.Instance.NewGaugeOn();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.OpenHighGauge"), "", (Severity)1);
		}
	}

	private void btnCloseGauge_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewGaugeOff();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormVacuum.CloseHighGauge"), "", (Severity)1);
	}

	private void btnTest1Vacuum1_Click(object sender, EventArgs e)
	{
		double vacuumLimit = -1.0;
		double.TryParse(txtVacuumInt.Text, out vacuumLimit);
		if (vacuumLimit == -1.0)
		{
			MessageBox.Show(Lang.Txt("AddFormVacuum.Text3"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
		}
		if (MessageBox.Show(Lang.Txt("AddFormVacuum.Text4"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OKCancel) == DialogResult.Cancel)
		{
			return;
		}
		bStartVacuumCheck = true;
		RefreshGraph();
		Task.Factory.StartNew(delegate
		{
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text5"));
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text6"));
			});
			PowerManager.Instance.MC3 = true;
			PowerManager.Instance.Interface = true;
			Vacuum.Instance.NewValveOff();
			PowerManager.Instance.Backing = false;
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text7"));
			});
			while (bStartVacuumCheck)
			{
				double rateLens = -1.0;
				double rateInt2 = -1.0;
				GetRates(out rateInt2, out rateLens);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text8"), rateInt2));
				});
				if (rateInt2 < vacuumLimit)
				{
					break;
				}
				double.TryParse(txtVacuumInt.Text, out vacuumLimit);
			}
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text9"));
				listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
				listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
			});
			if (bStartVacuumCheck)
			{
				PowerManager.Instance.Interface = false;
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text11"));
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text12"));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
				});
				int num = 180;
				while (bStartVacuumCheck && num > 0)
				{
					Thread.Sleep(1000);
					num--;
				}
				double rateLens2 = -1.0;
				double rateInt = -1.0;
				GetRates(out rateInt, out rateLens2);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text13"), rateInt));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text13"), rateInt));
				});
				PowerManager.Instance.MC3 = false;
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text14"));
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text15"));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
				});
				num = 20;
				while (bStartVacuumCheck && num > 0)
				{
					Thread.Sleep(1000);
					num--;
				}
				rateLens2 = -1.0;
				rateInt = -1.0;
				GetRates(out rateInt, out rateLens2);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text16"), rateInt));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text16"), rateInt));
					listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text17"));
				});
			}
		});
	}

	private void btnStop1_Click(object sender, EventArgs e)
	{
		bStartVacuumCheck = false;
		PowerManager.Instance.MC3 = false;
		PowerManager.Instance.Interface = false;
		Vacuum.Instance.NewValveOff();
		PowerManager.Instance.Backing = false;
	}

	private void btnStop2_Click(object sender, EventArgs e)
	{
		bStartVacuumCheck = false;
		PowerManager.Instance.MC3 = false;
		PowerManager.Instance.Backing = false;
		Vacuum.Instance.NewValveOff();
		PowerManager.Instance.Interface = false;
	}

	private void RefreshGraph()
	{
		Task.Factory.StartNew(delegate
		{
			graphInt.GraphPane.CurveList[0].Clear();
			graphLens.GraphPane.CurveList[0].Clear();
			while (true)
			{
				if (graphInt.GraphPane.CurveList[0].Points.Count > 10000)
				{
					graphInt.GraphPane.CurveList[0].RemovePoint(0);
					graphLens.GraphPane.CurveList[0].RemovePoint(0);
				}
				graphInt.GraphPane.CurveList[0].AddPoint(new XDate(DateTime.Now), Vacuum.vacumm.ReadVacuum[0]);
				graphLens.GraphPane.CurveList[0].AddPoint(new XDate(DateTime.Now), Vacuum.vacumm.ReadVacuum[1]);
				Thread.Sleep(2000);
				Invoke((MethodInvoker)delegate
				{
					if (graphInt.GraphPane.CurveList[0].Points.Count > 5)
					{
						int count = graphInt.GraphPane.CurveList[0].Points.Count;
						txtIntVacuumRate.Text = ((graphInt.GraphPane.CurveList[0].Points[count - 1].Y - graphInt.GraphPane.CurveList[0].Points[count - 6].Y) / 10.0).ToString();
					}
					if (graphLens.GraphPane.CurveList[0].Points.Count > 5)
					{
						int count2 = graphInt.GraphPane.CurveList[0].Points.Count;
						txtLensVacuumRate.Text = ((graphLens.GraphPane.CurveList[0].Points[count2 - 1].Y - graphLens.GraphPane.CurveList[0].Points[count2 - 6].Y) / 10.0).ToString();
					}
					graphInt.AxisChange();
					graphInt.Refresh();
					graphLens.AxisChange();
					graphLens.Refresh();
				});
			}
		});
	}

	private void btnTest2_Click(object sender, EventArgs e)
	{
		double vacuumLimit = -1.0;
		double.TryParse(txtVacuumInt.Text, out vacuumLimit);
		if (vacuumLimit == -1.0)
		{
			MessageBox.Show(Lang.Txt("AddFormVacuum.Text3"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
		}
		if (MessageBox.Show(Lang.Txt("AddFormVacuum.Text18"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OKCancel) == DialogResult.Cancel)
		{
			return;
		}
		bStartVacuumCheck = true;
		RefreshGraph();
		Task.Factory.StartNew(delegate
		{
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text19"));
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text20"));
			});
			PowerManager.Instance.MC3 = true;
			PowerManager.Instance.Interface = false;
			Vacuum.Instance.NewValveOff();
			PowerManager.Instance.Backing = true;
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text21"));
			});
			Thread.Sleep(3000);
			while (bStartVacuumCheck)
			{
				GetRates(out var _, out var rateLens2);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text22"), rateLens2));
				});
				if (rateLens2 < vacuumLimit)
				{
					break;
				}
				double.TryParse(txtVacuumLens.Text, out vacuumLimit);
			}
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text9"));
				listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text23"), Vacuum.vacumm.ReadVacuum[1]));
			});
			if (bStartVacuumCheck)
			{
				PowerManager.Instance.Backing = false;
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text24"));
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text25"));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
				});
				int num = 20;
				while (bStartVacuumCheck && num > 0)
				{
					Thread.Sleep(1000);
					num--;
				}
				GetRates(out var rateInt2, out var rateLens);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text26"), rateLens));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text26"), rateLens));
				});
				PowerManager.Instance.MC3 = false;
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text14"));
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text15"));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
				});
				num = 20;
				while (bStartVacuumCheck && num > 0)
				{
					Thread.Sleep(1000);
					num--;
				}
				GetRates(out rateInt2, out rateLens);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text27"), rateLens));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text27"), rateLens));
					listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text28"));
				});
			}
		});
	}

	private void btnTest3_Click(object sender, EventArgs e)
	{
		Invoke((MethodInvoker)delegate
		{
			listProcess.Items.Clear();
		});
		double vacuumLimit = -1.0;
		double.TryParse(txtVacuumLens.Text, out vacuumLimit);
		if (vacuumLimit == -1.0)
		{
			MessageBox.Show(Lang.Txt("AddFormVacuum.Text3"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
		}
		if (MessageBox.Show(Lang.Txt("AddFormVacuum.Text29"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OKCancel) == DialogResult.Cancel)
		{
			return;
		}
		bStartVacuumCheck = true;
		Task.Factory.StartNew(delegate
		{
			PowerManager.Instance.MC3 = true;
			PowerManager.Instance.Backing = true;
			PowerManager.Instance.Interface = true;
			Vacuum.Instance.NewValveOff();
			Thread.Sleep(5000);
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text30"));
				listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text30"));
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text31"));
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text32"));
			});
			while (bStartVacuumCheck)
			{
				double rateLens3 = -1.0;
				double rateInt3 = -1.0;
				GetRates(out rateInt3, out rateLens3);
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text33"), rateInt3));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text34"), rateLens3));
				});
				if (rateLens3 < vacuumLimit && rateInt3 < vacuumLimit)
				{
					break;
				}
				double.TryParse(txtVacuumAll.Text, out vacuumLimit);
			}
			Invoke((MethodInvoker)delegate
			{
				listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text9"));
				listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text23"), Vacuum.vacumm.ReadVacuum[1]));
				listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
				listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text23"), Vacuum.vacumm.ReadVacuum[1]));
				listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
			});
			if (bStartVacuumCheck)
			{
				Vacuum.Instance.NewValveOn();
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text50"));
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text51"));
				});
				while (bStartVacuumCheck)
				{
					double rateLens2 = -1.0;
					double rateInt2 = -1.0;
					GetRates(out rateInt2, out rateLens2);
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text33"), rateInt2));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text34"), rateLens2));
					});
					if (rateLens2 < vacuumLimit && rateInt2 < vacuumLimit)
					{
						break;
					}
					double.TryParse(txtVacuumAll.Text, out vacuumLimit);
				}
				Invoke((MethodInvoker)delegate
				{
					listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text9"));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text23"), Vacuum.vacumm.ReadVacuum[1]));
					listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text23"), Vacuum.vacumm.ReadVacuum[1]));
					listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text10"), Vacuum.vacumm.ReadVacuum[0]));
				});
				if (bStartVacuumCheck)
				{
					PowerManager.Instance.Backing = false;
					PowerManager.Instance.Interface = false;
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text35"));
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text36"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
					});
					int num = 180;
					while (bStartVacuumCheck && num > 0)
					{
						Thread.Sleep(1000);
						num--;
					}
					double rateLens = -1.0;
					double rateInt = 1.0;
					GetRates(out rateInt, out rateLens);
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text37"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
						listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text37"));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
					});
					PowerManager.Instance.MC3 = false;
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text40"));
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text25"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
					});
					num = 20;
					while (bStartVacuumCheck && num > 0)
					{
						Thread.Sleep(1000);
						num--;
					}
					rateLens = -1.0;
					rateInt = -1.0;
					GetRates(out rateInt, out rateLens);
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text41"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
						listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text41"));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
					});
					Vacuum.Instance.NewValveOff();
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text42"));
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text36"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.CurrentTime"), DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
					});
					num = 180;
					while (bStartVacuumCheck && num > 0)
					{
						Thread.Sleep(1000);
						num--;
					}
					rateLens = -1.0;
					rateInt = -1.0;
					GetRates(out rateInt, out rateLens);
					Invoke((MethodInvoker)delegate
					{
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text43"));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
						listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text43"));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text38"), rateInt));
						listResult.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text39"), rateLens));
						listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text44"));
						listResult.Items.Insert(0, Lang.Txt("AddFormVacuum.Text44"));
					});
				}
			}
		});
	}

	private void GetRates(out double rateInt, out double rateLens)
	{
		double firstIntVacuum = Vacuum.vacumm.ReadVacuum[0];
		double firstLensVacuum = Vacuum.vacumm.ReadVacuum[1];
		Invoke((MethodInvoker)delegate
		{
			listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text45"), firstIntVacuum));
			listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text46"), firstLensVacuum));
			listProcess.Items.Insert(0, Lang.Txt("AddFormVacuum.Text47"));
		});
		int count = 10;
		while (bStartVacuumCheck && count > 0)
		{
			Thread.Sleep(1000);
			count--;
		}
		double secondIntVacuum = Vacuum.vacumm.ReadVacuum[0];
		double secondLensVacuum = Vacuum.vacumm.ReadVacuum[1];
		rateInt = Math.Abs(secondIntVacuum - firstIntVacuum) / 20.0;
		rateLens = Math.Abs(secondLensVacuum - firstLensVacuum) / 20.0;
		Invoke((MethodInvoker)delegate
		{
			listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text48"), secondIntVacuum));
			listProcess.Items.Insert(0, string.Format(Lang.Txt("AddFormVacuum.Text49"), secondLensVacuum));
		});
	}

	private void btnStop3_Click(object sender, EventArgs e)
	{
		Vacuum.Instance.NewValveOff();
		PowerManager.Instance.Backing = false;
		PowerManager.Instance.Interface = false;
		PowerManager.Instance.MC3 = false;
		bStartVacuumCheck = false;
	}

	private void graphInt_Load(object sender, EventArgs e)
	{
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.components = new System.ComponentModel.Container();
		System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ICP_MS.Plugin.Advance.FormVacuum));
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.gbTurbo2 = new System.Windows.Forms.GroupBox();
		this.picTurboStatus2 = new System.Windows.Forms.PictureBox();
		this.lblStatus2 = new System.Windows.Forms.Label();
		this.txtBearing2 = new System.Windows.Forms.TextBox();
		this.lblBearing2 = new System.Windows.Forms.Label();
		this.txtCurrent2 = new System.Windows.Forms.TextBox();
		this.lblCurrent2 = new System.Windows.Forms.Label();
		this.txtVolt2 = new System.Windows.Forms.TextBox();
		this.lblVolt2 = new System.Windows.Forms.Label();
		this.txtTemperature2 = new System.Windows.Forms.TextBox();
		this.lblTemperature2 = new System.Windows.Forms.Label();
		this.txtFrequency2 = new System.Windows.Forms.TextBox();
		this.lblFrequency2 = new System.Windows.Forms.Label();
		this.gbTurbo1 = new System.Windows.Forms.GroupBox();
		this.picTurboStatus1 = new System.Windows.Forms.PictureBox();
		this.lblStatus1 = new System.Windows.Forms.Label();
		this.txtBearing1 = new System.Windows.Forms.TextBox();
		this.lblBearing1 = new System.Windows.Forms.Label();
		this.txtCurrent1 = new System.Windows.Forms.TextBox();
		this.lblCurrent1 = new System.Windows.Forms.Label();
		this.txtVolt1 = new System.Windows.Forms.TextBox();
		this.lblVolt1 = new System.Windows.Forms.Label();
		this.txtTemperature1 = new System.Windows.Forms.TextBox();
		this.lblTemperature1 = new System.Windows.Forms.Label();
		this.txtFrequency1 = new System.Windows.Forms.TextBox();
		this.lblFrequency1 = new System.Windows.Forms.Label();
		this.gbValve = new System.Windows.Forms.GroupBox();
		this.btnClose = new System.Windows.Forms.Button();
		this.btnOpen = new System.Windows.Forms.Button();
		this.gbControl = new System.Windows.Forms.GroupBox();
		this.btnResetTurbo = new System.Windows.Forms.Button();
		this.btnCloseTurbo = new System.Windows.Forms.Button();
		this.btnOpenTurbo = new System.Windows.Forms.Button();
		this.toolTipTurbo = new System.Windows.Forms.ToolTip(this.components);
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.txtWarnning = new System.Windows.Forms.TextBox();
		this.btnCloseValve = new System.Windows.Forms.Button();
		this.btnOpenValve = new System.Windows.Forms.Button();
		this.gbControl1 = new System.Windows.Forms.GroupBox();
		this.lblVersion = new System.Windows.Forms.Label();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.button1 = new System.Windows.Forms.Button();
		this.txtCount = new System.Windows.Forms.TextBox();
		this.label1 = new System.Windows.Forms.Label();
		this.btnStop = new System.Windows.Forms.Button();
		this.btnTest = new System.Windows.Forms.Button();
		this.gbGauge = new System.Windows.Forms.GroupBox();
		this.btnCloseGauge = new System.Windows.Forms.Button();
		this.btnOpenGuage = new System.Windows.Forms.Button();
		this.panel1 = new System.Windows.Forms.Panel();
		this.tabControl1 = new System.Windows.Forms.TabControl();
		this.tabPage1 = new System.Windows.Forms.TabPage();
		this.tabPage2 = new System.Windows.Forms.TabPage();
		this.panel2 = new System.Windows.Forms.Panel();
		this.groupBox9 = new System.Windows.Forms.GroupBox();
		this.listResult = new System.Windows.Forms.ListBox();
		this.groupBox8 = new System.Windows.Forms.GroupBox();
		this.listProcess = new System.Windows.Forms.ListBox();
		this.groupBox7 = new System.Windows.Forms.GroupBox();
		this.label6 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.txtLensVacuumRate = new System.Windows.Forms.TextBox();
		this.txtIntVacuumRate = new System.Windows.Forms.TextBox();
		this.groupBox6 = new System.Windows.Forms.GroupBox();
		this.label3 = new System.Windows.Forms.Label();
		this.btnStop3 = new System.Windows.Forms.Button();
		this.btnTest3 = new System.Windows.Forms.Button();
		this.txtVacuumAll = new System.Windows.Forms.TextBox();
		this.groupBox5 = new System.Windows.Forms.GroupBox();
		this.label2 = new System.Windows.Forms.Label();
		this.btnStop2 = new System.Windows.Forms.Button();
		this.btnTest2 = new System.Windows.Forms.Button();
		this.txtVacuumLens = new System.Windows.Forms.TextBox();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.label5 = new System.Windows.Forms.Label();
		this.txtVacuumInt = new System.Windows.Forms.TextBox();
		this.btnStop1 = new System.Windows.Forms.Button();
		this.btnTest1 = new System.Windows.Forms.Button();
		this.graphLens = new ZedGraph.ZedGraphControl();
		this.graphInt = new ZedGraph.ZedGraphControl();
		this.groupBox3.SuspendLayout();
		this.gbTurbo2.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.picTurboStatus2).BeginInit();
		this.gbTurbo1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.picTurboStatus1).BeginInit();
		this.gbValve.SuspendLayout();
		this.gbControl.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.gbControl1.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.gbGauge.SuspendLayout();
		this.panel1.SuspendLayout();
		this.tabControl1.SuspendLayout();
		this.tabPage1.SuspendLayout();
		this.tabPage2.SuspendLayout();
		this.panel2.SuspendLayout();
		this.groupBox9.SuspendLayout();
		this.groupBox8.SuspendLayout();
		this.groupBox7.SuspendLayout();
		this.groupBox6.SuspendLayout();
		this.groupBox5.SuspendLayout();
		this.groupBox4.SuspendLayout();
		base.SuspendLayout();
		this.groupBox3.Controls.Add(this.gbTurbo2);
		this.groupBox3.Controls.Add(this.gbTurbo1);
		this.groupBox3.Location = new System.Drawing.Point(20, 9);
		this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox3.Size = new System.Drawing.Size(459, 281);
		this.groupBox3.TabIndex = 13;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "分子泵";
		this.gbTurbo2.Controls.Add(this.picTurboStatus2);
		this.gbTurbo2.Controls.Add(this.lblStatus2);
		this.gbTurbo2.Controls.Add(this.txtBearing2);
		this.gbTurbo2.Controls.Add(this.lblBearing2);
		this.gbTurbo2.Controls.Add(this.txtCurrent2);
		this.gbTurbo2.Controls.Add(this.lblCurrent2);
		this.gbTurbo2.Controls.Add(this.txtVolt2);
		this.gbTurbo2.Controls.Add(this.lblVolt2);
		this.gbTurbo2.Controls.Add(this.txtTemperature2);
		this.gbTurbo2.Controls.Add(this.lblTemperature2);
		this.gbTurbo2.Controls.Add(this.txtFrequency2);
		this.gbTurbo2.Controls.Add(this.lblFrequency2);
		this.gbTurbo2.Location = new System.Drawing.Point(8, 150);
		this.gbTurbo2.Margin = new System.Windows.Forms.Padding(4);
		this.gbTurbo2.Name = "gbTurbo2";
		this.gbTurbo2.Padding = new System.Windows.Forms.Padding(4);
		this.gbTurbo2.Size = new System.Drawing.Size(443, 121);
		this.gbTurbo2.TabIndex = 12;
		this.gbTurbo2.TabStop = false;
		this.gbTurbo2.Text = "2#-TURBOVAC 50";
		this.picTurboStatus2.Image = (System.Drawing.Image)resources.GetObject("picTurboStatus2.Image");
		this.picTurboStatus2.Location = new System.Drawing.Point(371, 81);
		this.picTurboStatus2.Margin = new System.Windows.Forms.Padding(4);
		this.picTurboStatus2.Name = "picTurboStatus2";
		this.picTurboStatus2.Size = new System.Drawing.Size(29, 28);
		this.picTurboStatus2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.picTurboStatus2.TabIndex = 11;
		this.picTurboStatus2.TabStop = false;
		this.lblStatus2.Location = new System.Drawing.Point(233, 84);
		this.lblStatus2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblStatus2.Name = "lblStatus2";
		this.lblStatus2.Size = new System.Drawing.Size(107, 19);
		this.lblStatus2.TabIndex = 10;
		this.lblStatus2.Text = "泵状态:";
		this.lblStatus2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtBearing2.Location = new System.Drawing.Point(131, 82);
		this.txtBearing2.Margin = new System.Windows.Forms.Padding(4);
		this.txtBearing2.Name = "txtBearing2";
		this.txtBearing2.ReadOnly = true;
		this.txtBearing2.Size = new System.Drawing.Size(87, 25);
		this.txtBearing2.TabIndex = 9;
		this.txtBearing2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblBearing2.Location = new System.Drawing.Point(3, 88);
		this.lblBearing2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblBearing2.Name = "lblBearing2";
		this.lblBearing2.Size = new System.Drawing.Size(120, 19);
		this.lblBearing2.TabIndex = 8;
		this.lblBearing2.Text = "轴承(℃):";
		this.lblBearing2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtCurrent2.Location = new System.Drawing.Point(347, 50);
		this.txtCurrent2.Margin = new System.Windows.Forms.Padding(4);
		this.txtCurrent2.Name = "txtCurrent2";
		this.txtCurrent2.ReadOnly = true;
		this.txtCurrent2.Size = new System.Drawing.Size(87, 25);
		this.txtCurrent2.TabIndex = 7;
		this.txtCurrent2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblCurrent2.Location = new System.Drawing.Point(233, 50);
		this.lblCurrent2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblCurrent2.Name = "lblCurrent2";
		this.lblCurrent2.Size = new System.Drawing.Size(107, 19);
		this.lblCurrent2.TabIndex = 6;
		this.lblCurrent2.Text = "电流(A):";
		this.lblCurrent2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtVolt2.Location = new System.Drawing.Point(131, 49);
		this.txtVolt2.Margin = new System.Windows.Forms.Padding(4);
		this.txtVolt2.Name = "txtVolt2";
		this.txtVolt2.ReadOnly = true;
		this.txtVolt2.Size = new System.Drawing.Size(87, 25);
		this.txtVolt2.TabIndex = 5;
		this.txtVolt2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblVolt2.Location = new System.Drawing.Point(16, 54);
		this.lblVolt2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblVolt2.Name = "lblVolt2";
		this.lblVolt2.Size = new System.Drawing.Size(107, 19);
		this.lblVolt2.TabIndex = 4;
		this.lblVolt2.Text = "电压(V):";
		this.lblVolt2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTemperature2.Location = new System.Drawing.Point(347, 18);
		this.txtTemperature2.Margin = new System.Windows.Forms.Padding(4);
		this.txtTemperature2.Name = "txtTemperature2";
		this.txtTemperature2.ReadOnly = true;
		this.txtTemperature2.Size = new System.Drawing.Size(87, 25);
		this.txtTemperature2.TabIndex = 3;
		this.txtTemperature2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblTemperature2.Location = new System.Drawing.Point(233, 18);
		this.lblTemperature2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblTemperature2.Name = "lblTemperature2";
		this.lblTemperature2.Size = new System.Drawing.Size(107, 19);
		this.lblTemperature2.TabIndex = 2;
		this.lblTemperature2.Text = "温度(℃):";
		this.lblTemperature2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtFrequency2.Location = new System.Drawing.Point(131, 16);
		this.txtFrequency2.Margin = new System.Windows.Forms.Padding(4);
		this.txtFrequency2.Name = "txtFrequency2";
		this.txtFrequency2.ReadOnly = true;
		this.txtFrequency2.Size = new System.Drawing.Size(87, 25);
		this.txtFrequency2.TabIndex = 1;
		this.txtFrequency2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblFrequency2.Location = new System.Drawing.Point(16, 21);
		this.lblFrequency2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblFrequency2.Name = "lblFrequency2";
		this.lblFrequency2.Size = new System.Drawing.Size(107, 19);
		this.lblFrequency2.TabIndex = 0;
		this.lblFrequency2.Text = "频率(Hz):";
		this.lblFrequency2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.gbTurbo1.Controls.Add(this.picTurboStatus1);
		this.gbTurbo1.Controls.Add(this.lblStatus1);
		this.gbTurbo1.Controls.Add(this.txtBearing1);
		this.gbTurbo1.Controls.Add(this.lblBearing1);
		this.gbTurbo1.Controls.Add(this.txtCurrent1);
		this.gbTurbo1.Controls.Add(this.lblCurrent1);
		this.gbTurbo1.Controls.Add(this.txtVolt1);
		this.gbTurbo1.Controls.Add(this.lblVolt1);
		this.gbTurbo1.Controls.Add(this.txtTemperature1);
		this.gbTurbo1.Controls.Add(this.lblTemperature1);
		this.gbTurbo1.Controls.Add(this.txtFrequency1);
		this.gbTurbo1.Controls.Add(this.lblFrequency1);
		this.gbTurbo1.Location = new System.Drawing.Point(8, 18);
		this.gbTurbo1.Margin = new System.Windows.Forms.Padding(4);
		this.gbTurbo1.Name = "gbTurbo1";
		this.gbTurbo1.Padding = new System.Windows.Forms.Padding(4);
		this.gbTurbo1.Size = new System.Drawing.Size(443, 124);
		this.gbTurbo1.TabIndex = 0;
		this.gbTurbo1.TabStop = false;
		this.gbTurbo1.Text = "1#-TURBOVAC SL300";
		this.picTurboStatus1.Image = (System.Drawing.Image)resources.GetObject("picTurboStatus1.Image");
		this.picTurboStatus1.Location = new System.Drawing.Point(371, 81);
		this.picTurboStatus1.Margin = new System.Windows.Forms.Padding(4);
		this.picTurboStatus1.Name = "picTurboStatus1";
		this.picTurboStatus1.Size = new System.Drawing.Size(29, 28);
		this.picTurboStatus1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.picTurboStatus1.TabIndex = 11;
		this.picTurboStatus1.TabStop = false;
		this.lblStatus1.Location = new System.Drawing.Point(233, 88);
		this.lblStatus1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblStatus1.Name = "lblStatus1";
		this.lblStatus1.Size = new System.Drawing.Size(107, 19);
		this.lblStatus1.TabIndex = 10;
		this.lblStatus1.Text = "泵状态:";
		this.lblStatus1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtBearing1.Location = new System.Drawing.Point(131, 88);
		this.txtBearing1.Margin = new System.Windows.Forms.Padding(4);
		this.txtBearing1.Name = "txtBearing1";
		this.txtBearing1.ReadOnly = true;
		this.txtBearing1.Size = new System.Drawing.Size(87, 25);
		this.txtBearing1.TabIndex = 9;
		this.txtBearing1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblBearing1.Location = new System.Drawing.Point(5, 90);
		this.lblBearing1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblBearing1.Name = "lblBearing1";
		this.lblBearing1.Size = new System.Drawing.Size(117, 19);
		this.lblBearing1.TabIndex = 8;
		this.lblBearing1.Text = "轴承(℃):";
		this.lblBearing1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtCurrent1.Location = new System.Drawing.Point(347, 50);
		this.txtCurrent1.Margin = new System.Windows.Forms.Padding(4);
		this.txtCurrent1.Name = "txtCurrent1";
		this.txtCurrent1.ReadOnly = true;
		this.txtCurrent1.Size = new System.Drawing.Size(87, 25);
		this.txtCurrent1.TabIndex = 7;
		this.txtCurrent1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblCurrent1.Location = new System.Drawing.Point(233, 54);
		this.lblCurrent1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblCurrent1.Name = "lblCurrent1";
		this.lblCurrent1.Size = new System.Drawing.Size(107, 19);
		this.lblCurrent1.TabIndex = 6;
		this.lblCurrent1.Text = "电流(A):";
		this.lblCurrent1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtVolt1.Location = new System.Drawing.Point(131, 54);
		this.txtVolt1.Margin = new System.Windows.Forms.Padding(4);
		this.txtVolt1.Name = "txtVolt1";
		this.txtVolt1.ReadOnly = true;
		this.txtVolt1.Size = new System.Drawing.Size(87, 25);
		this.txtVolt1.TabIndex = 5;
		this.txtVolt1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblVolt1.Location = new System.Drawing.Point(16, 56);
		this.lblVolt1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblVolt1.Name = "lblVolt1";
		this.lblVolt1.Size = new System.Drawing.Size(107, 19);
		this.lblVolt1.TabIndex = 4;
		this.lblVolt1.Text = "电压(V):";
		this.lblVolt1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtTemperature1.Location = new System.Drawing.Point(347, 18);
		this.txtTemperature1.Margin = new System.Windows.Forms.Padding(4);
		this.txtTemperature1.Name = "txtTemperature1";
		this.txtTemperature1.ReadOnly = true;
		this.txtTemperature1.Size = new System.Drawing.Size(87, 25);
		this.txtTemperature1.TabIndex = 3;
		this.txtTemperature1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblTemperature1.Location = new System.Drawing.Point(233, 21);
		this.lblTemperature1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblTemperature1.Name = "lblTemperature1";
		this.lblTemperature1.Size = new System.Drawing.Size(107, 19);
		this.lblTemperature1.TabIndex = 2;
		this.lblTemperature1.Text = "温度(℃):";
		this.lblTemperature1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.txtFrequency1.Location = new System.Drawing.Point(131, 21);
		this.txtFrequency1.Margin = new System.Windows.Forms.Padding(4);
		this.txtFrequency1.Name = "txtFrequency1";
		this.txtFrequency1.ReadOnly = true;
		this.txtFrequency1.Size = new System.Drawing.Size(87, 25);
		this.txtFrequency1.TabIndex = 1;
		this.txtFrequency1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lblFrequency1.Location = new System.Drawing.Point(16, 24);
		this.lblFrequency1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblFrequency1.Name = "lblFrequency1";
		this.lblFrequency1.Size = new System.Drawing.Size(107, 19);
		this.lblFrequency1.TabIndex = 0;
		this.lblFrequency1.Text = "频率(Hz):";
		this.lblFrequency1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.gbValve.Controls.Add(this.btnClose);
		this.gbValve.Controls.Add(this.btnOpen);
		this.gbValve.Location = new System.Drawing.Point(255, 298);
		this.gbValve.Margin = new System.Windows.Forms.Padding(4);
		this.gbValve.Name = "gbValve";
		this.gbValve.Padding = new System.Windows.Forms.Padding(4);
		this.gbValve.Size = new System.Drawing.Size(224, 124);
		this.gbValve.TabIndex = 13;
		this.gbValve.TabStop = false;
		this.gbValve.Text = "放气";
		this.btnClose.Location = new System.Drawing.Point(120, 44);
		this.btnClose.Margin = new System.Windows.Forms.Padding(4);
		this.btnClose.Name = "btnClose";
		this.btnClose.Size = new System.Drawing.Size(81, 60);
		this.btnClose.TabIndex = 4;
		this.btnClose.Text = "关";
		this.btnClose.UseVisualStyleBackColor = true;
		this.btnClose.Click += new System.EventHandler(btnClose_Click);
		this.btnOpen.Location = new System.Drawing.Point(13, 45);
		this.btnOpen.Margin = new System.Windows.Forms.Padding(4);
		this.btnOpen.Name = "btnOpen";
		this.btnOpen.Size = new System.Drawing.Size(75, 60);
		this.btnOpen.TabIndex = 3;
		this.btnOpen.Text = "开";
		this.btnOpen.UseVisualStyleBackColor = true;
		this.btnOpen.Click += new System.EventHandler(btnOpen_Click);
		this.gbControl.Controls.Add(this.btnResetTurbo);
		this.gbControl.Controls.Add(this.btnCloseTurbo);
		this.gbControl.Controls.Add(this.btnOpenTurbo);
		this.gbControl.Location = new System.Drawing.Point(20, 298);
		this.gbControl.Margin = new System.Windows.Forms.Padding(4);
		this.gbControl.Name = "gbControl";
		this.gbControl.Padding = new System.Windows.Forms.Padding(4);
		this.gbControl.Size = new System.Drawing.Size(227, 124);
		this.gbControl.TabIndex = 10;
		this.gbControl.TabStop = false;
		this.gbControl.Text = "控制";
		this.btnResetTurbo.Location = new System.Drawing.Point(155, 44);
		this.btnResetTurbo.Margin = new System.Windows.Forms.Padding(4);
		this.btnResetTurbo.Name = "btnResetTurbo";
		this.btnResetTurbo.Size = new System.Drawing.Size(64, 60);
		this.btnResetTurbo.TabIndex = 2;
		this.btnResetTurbo.Text = "复位";
		this.btnResetTurbo.UseVisualStyleBackColor = true;
		this.btnResetTurbo.Click += new System.EventHandler(btnResetTurbo_Click);
		this.btnCloseTurbo.Location = new System.Drawing.Point(83, 44);
		this.btnCloseTurbo.Margin = new System.Windows.Forms.Padding(4);
		this.btnCloseTurbo.Name = "btnCloseTurbo";
		this.btnCloseTurbo.Size = new System.Drawing.Size(64, 60);
		this.btnCloseTurbo.TabIndex = 1;
		this.btnCloseTurbo.Text = "关分子泵";
		this.btnCloseTurbo.UseVisualStyleBackColor = true;
		this.btnCloseTurbo.Click += new System.EventHandler(btnCloseTurbo_Click);
		this.btnOpenTurbo.Location = new System.Drawing.Point(11, 44);
		this.btnOpenTurbo.Margin = new System.Windows.Forms.Padding(4);
		this.btnOpenTurbo.Name = "btnOpenTurbo";
		this.btnOpenTurbo.Size = new System.Drawing.Size(64, 60);
		this.btnOpenTurbo.TabIndex = 0;
		this.btnOpenTurbo.Text = "开分子泵";
		this.btnOpenTurbo.UseVisualStyleBackColor = true;
		this.btnOpenTurbo.Click += new System.EventHandler(btnOpenTurbo_Click);
		this.groupBox1.Controls.Add(this.txtWarnning);
		this.groupBox1.Location = new System.Drawing.Point(487, 20);
		this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox1.Size = new System.Drawing.Size(406, 270);
		this.groupBox1.TabIndex = 14;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "滑阀";
		this.txtWarnning.Location = new System.Drawing.Point(8, 25);
		this.txtWarnning.Margin = new System.Windows.Forms.Padding(4);
		this.txtWarnning.Multiline = true;
		this.txtWarnning.Name = "txtWarnning";
		this.txtWarnning.ReadOnly = true;
		this.txtWarnning.Size = new System.Drawing.Size(360, 235);
		this.txtWarnning.TabIndex = 0;
		this.btnCloseValve.Location = new System.Drawing.Point(113, 45);
		this.btnCloseValve.Margin = new System.Windows.Forms.Padding(4);
		this.btnCloseValve.Name = "btnCloseValve";
		this.btnCloseValve.Size = new System.Drawing.Size(64, 60);
		this.btnCloseValve.TabIndex = 4;
		this.btnCloseValve.Text = "关阀";
		this.btnCloseValve.UseVisualStyleBackColor = true;
		this.btnCloseValve.Click += new System.EventHandler(btnCloseValve_Click);
		this.btnOpenValve.Location = new System.Drawing.Point(25, 45);
		this.btnOpenValve.Margin = new System.Windows.Forms.Padding(4);
		this.btnOpenValve.Name = "btnOpenValve";
		this.btnOpenValve.Size = new System.Drawing.Size(64, 60);
		this.btnOpenValve.TabIndex = 3;
		this.btnOpenValve.Text = "开阀";
		this.btnOpenValve.UseVisualStyleBackColor = true;
		this.btnOpenValve.Click += new System.EventHandler(btnOpenValve_Click);
		this.gbControl1.Controls.Add(this.btnCloseValve);
		this.gbControl1.Controls.Add(this.btnOpenValve);
		this.gbControl1.Location = new System.Drawing.Point(487, 298);
		this.gbControl1.Margin = new System.Windows.Forms.Padding(4);
		this.gbControl1.Name = "gbControl1";
		this.gbControl1.Padding = new System.Windows.Forms.Padding(4);
		this.gbControl1.Size = new System.Drawing.Size(199, 124);
		this.gbControl1.TabIndex = 5;
		this.gbControl1.TabStop = false;
		this.gbControl1.Text = "滑阀控制";
		this.lblVersion.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
		this.lblVersion.Location = new System.Drawing.Point(1370, 816);
		this.lblVersion.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblVersion.Name = "lblVersion";
		this.lblVersion.Size = new System.Drawing.Size(172, 21);
		this.lblVersion.TabIndex = 15;
		this.lblVersion.Text = "        123";
		this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
		this.groupBox2.Controls.Add(this.button1);
		this.groupBox2.Controls.Add(this.txtCount);
		this.groupBox2.Controls.Add(this.label1);
		this.groupBox2.Controls.Add(this.btnStop);
		this.groupBox2.Controls.Add(this.btnTest);
		this.groupBox2.Location = new System.Drawing.Point(20, 430);
		this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox2.Size = new System.Drawing.Size(876, 124);
		this.groupBox2.TabIndex = 5;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "滑阀测试(重复开关阀)";
		this.button1.Location = new System.Drawing.Point(418, 35);
		this.button1.Name = "button1";
		this.button1.Size = new System.Drawing.Size(115, 60);
		this.button1.TabIndex = 7;
		this.button1.Text = "点火后测试";
		this.button1.UseVisualStyleBackColor = true;
		this.button1.Click += new System.EventHandler(btnTest1_Click);
		this.txtCount.Location = new System.Drawing.Point(97, 51);
		this.txtCount.Margin = new System.Windows.Forms.Padding(4);
		this.txtCount.Name = "txtCount";
		this.txtCount.Size = new System.Drawing.Size(125, 25);
		this.txtCount.TabIndex = 6;
		this.txtCount.Text = "10";
		this.txtCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(17, 58);
		this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(82, 15);
		this.label1.TabIndex = 5;
		this.label1.Text = "重复次数：";
		this.btnStop.Location = new System.Drawing.Point(316, 35);
		this.btnStop.Margin = new System.Windows.Forms.Padding(4);
		this.btnStop.Name = "btnStop";
		this.btnStop.Size = new System.Drawing.Size(64, 60);
		this.btnStop.TabIndex = 4;
		this.btnStop.Text = "停止";
		this.btnStop.UseVisualStyleBackColor = true;
		this.btnStop.Click += new System.EventHandler(btnStop_Click);
		this.btnTest.Location = new System.Drawing.Point(244, 35);
		this.btnTest.Margin = new System.Windows.Forms.Padding(4);
		this.btnTest.Name = "btnTest";
		this.btnTest.Size = new System.Drawing.Size(64, 60);
		this.btnTest.TabIndex = 4;
		this.btnTest.Text = "测试";
		this.btnTest.UseVisualStyleBackColor = true;
		this.btnTest.Click += new System.EventHandler(btnTest_Click);
		this.gbGauge.Controls.Add(this.btnCloseGauge);
		this.gbGauge.Controls.Add(this.btnOpenGuage);
		this.gbGauge.Location = new System.Drawing.Point(694, 299);
		this.gbGauge.Margin = new System.Windows.Forms.Padding(4);
		this.gbGauge.Name = "gbGauge";
		this.gbGauge.Padding = new System.Windows.Forms.Padding(4);
		this.gbGauge.Size = new System.Drawing.Size(202, 124);
		this.gbGauge.TabIndex = 5;
		this.gbGauge.TabStop = false;
		this.gbGauge.Text = "高规";
		this.btnCloseGauge.Location = new System.Drawing.Point(113, 45);
		this.btnCloseGauge.Margin = new System.Windows.Forms.Padding(4);
		this.btnCloseGauge.Name = "btnCloseGauge";
		this.btnCloseGauge.Size = new System.Drawing.Size(64, 60);
		this.btnCloseGauge.TabIndex = 4;
		this.btnCloseGauge.Text = "关";
		this.btnCloseGauge.UseVisualStyleBackColor = true;
		this.btnCloseGauge.Click += new System.EventHandler(btnCloseGauge_Click);
		this.btnOpenGuage.Location = new System.Drawing.Point(25, 45);
		this.btnOpenGuage.Margin = new System.Windows.Forms.Padding(4);
		this.btnOpenGuage.Name = "btnOpenGuage";
		this.btnOpenGuage.Size = new System.Drawing.Size(64, 60);
		this.btnOpenGuage.TabIndex = 3;
		this.btnOpenGuage.Text = "开";
		this.btnOpenGuage.UseVisualStyleBackColor = true;
		this.btnOpenGuage.Click += new System.EventHandler(btnOpenGuage_Click);
		this.panel1.Controls.Add(this.gbValve);
		this.panel1.Controls.Add(this.gbControl);
		this.panel1.Controls.Add(this.groupBox2);
		this.panel1.Controls.Add(this.gbGauge);
		this.panel1.Controls.Add(this.gbControl1);
		this.panel1.Controls.Add(this.groupBox1);
		this.panel1.Controls.Add(this.groupBox3);
		this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
		this.panel1.Location = new System.Drawing.Point(3, 3);
		this.panel1.Name = "panel1";
		this.panel1.Size = new System.Drawing.Size(1544, 813);
		this.panel1.TabIndex = 16;
		this.tabControl1.Controls.Add(this.tabPage1);
		this.tabControl1.Controls.Add(this.tabPage2);
		this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
		this.tabControl1.Location = new System.Drawing.Point(0, 0);
		this.tabControl1.Name = "tabControl1";
		this.tabControl1.SelectedIndex = 0;
		this.tabControl1.Size = new System.Drawing.Size(1558, 848);
		this.tabControl1.TabIndex = 17;
		this.tabPage1.Controls.Add(this.panel1);
		this.tabPage1.Location = new System.Drawing.Point(4, 25);
		this.tabPage1.Name = "tabPage1";
		this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
		this.tabPage1.Size = new System.Drawing.Size(1550, 819);
		this.tabPage1.TabIndex = 0;
		this.tabPage1.Text = "真空控制";
		this.tabPage1.UseVisualStyleBackColor = true;
		this.tabPage2.Controls.Add(this.panel2);
		this.tabPage2.Location = new System.Drawing.Point(4, 25);
		this.tabPage2.Name = "tabPage2";
		this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
		this.tabPage2.Size = new System.Drawing.Size(1550, 819);
		this.tabPage2.TabIndex = 1;
		this.tabPage2.Text = "真空检漏";
		this.tabPage2.UseVisualStyleBackColor = true;
		this.panel2.BackColor = System.Drawing.SystemColors.Control;
		this.panel2.Controls.Add(this.groupBox9);
		this.panel2.Controls.Add(this.groupBox8);
		this.panel2.Controls.Add(this.graphLens);
		this.panel2.Controls.Add(this.graphInt);
		this.panel2.Controls.Add(this.groupBox7);
		this.panel2.Controls.Add(this.groupBox6);
		this.panel2.Controls.Add(this.groupBox5);
		this.panel2.Controls.Add(this.groupBox4);
		this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
		this.panel2.Location = new System.Drawing.Point(3, 3);
		this.panel2.Name = "panel2";
		this.panel2.Size = new System.Drawing.Size(1544, 813);
		this.panel2.TabIndex = 0;
		this.groupBox9.Controls.Add(this.listResult);
		this.groupBox9.Location = new System.Drawing.Point(280, 307);
		this.groupBox9.Name = "groupBox9";
		this.groupBox9.Size = new System.Drawing.Size(337, 292);
		this.groupBox9.TabIndex = 71;
		this.groupBox9.TabStop = false;
		this.groupBox9.Text = "检漏结果";
		this.listResult.Dock = System.Windows.Forms.DockStyle.Fill;
		this.listResult.FormattingEnabled = true;
		this.listResult.ItemHeight = 15;
		this.listResult.Location = new System.Drawing.Point(3, 21);
		this.listResult.Name = "listResult";
		this.listResult.Size = new System.Drawing.Size(331, 268);
		this.listResult.TabIndex = 70;
		this.groupBox8.Controls.Add(this.listProcess);
		this.groupBox8.Location = new System.Drawing.Point(280, 9);
		this.groupBox8.Name = "groupBox8";
		this.groupBox8.Size = new System.Drawing.Size(337, 292);
		this.groupBox8.TabIndex = 71;
		this.groupBox8.TabStop = false;
		this.groupBox8.Text = "检漏进度";
		this.listProcess.Dock = System.Windows.Forms.DockStyle.Fill;
		this.listProcess.FormattingEnabled = true;
		this.listProcess.ItemHeight = 15;
		this.listProcess.Location = new System.Drawing.Point(3, 21);
		this.listProcess.Name = "listProcess";
		this.listProcess.Size = new System.Drawing.Size(331, 268);
		this.listProcess.TabIndex = 70;
		this.groupBox7.Controls.Add(this.label6);
		this.groupBox7.Controls.Add(this.label4);
		this.groupBox7.Controls.Add(this.txtLensVacuumRate);
		this.groupBox7.Controls.Add(this.txtIntVacuumRate);
		this.groupBox7.Location = new System.Drawing.Point(16, 452);
		this.groupBox7.Name = "groupBox7";
		this.groupBox7.Size = new System.Drawing.Size(258, 100);
		this.groupBox7.TabIndex = 0;
		this.groupBox7.TabStop = false;
		this.groupBox7.Text = "真空变化速率";
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(28, 66);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(82, 15);
		this.label6.TabIndex = 1;
		this.label6.Text = "透镜真空：";
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(28, 37);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(82, 15);
		this.label4.TabIndex = 1;
		this.label4.Text = "接口真空：";
		this.txtLensVacuumRate.Location = new System.Drawing.Point(116, 62);
		this.txtLensVacuumRate.Name = "txtLensVacuumRate";
		this.txtLensVacuumRate.Size = new System.Drawing.Size(95, 25);
		this.txtLensVacuumRate.TabIndex = 1;
		this.txtLensVacuumRate.Text = "20";
		this.txtIntVacuumRate.Location = new System.Drawing.Point(116, 31);
		this.txtIntVacuumRate.Name = "txtIntVacuumRate";
		this.txtIntVacuumRate.Size = new System.Drawing.Size(95, 25);
		this.txtIntVacuumRate.TabIndex = 1;
		this.txtIntVacuumRate.Text = "20";
		this.groupBox6.Controls.Add(this.label3);
		this.groupBox6.Controls.Add(this.btnStop3);
		this.groupBox6.Controls.Add(this.btnTest3);
		this.groupBox6.Controls.Add(this.txtVacuumAll);
		this.groupBox6.Location = new System.Drawing.Point(19, 307);
		this.groupBox6.Name = "groupBox6";
		this.groupBox6.Size = new System.Drawing.Size(258, 123);
		this.groupBox6.TabIndex = 0;
		this.groupBox6.TabStop = false;
		this.groupBox6.Text = "整体检漏";
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(28, 39);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(112, 15);
		this.label3.TabIndex = 1;
		this.label3.Text = "透镜真空上限：";
		this.btnStop3.Location = new System.Drawing.Point(146, 78);
		this.btnStop3.Name = "btnStop3";
		this.btnStop3.Size = new System.Drawing.Size(75, 23);
		this.btnStop3.TabIndex = 1;
		this.btnStop3.Text = "停止";
		this.btnStop3.UseVisualStyleBackColor = true;
		this.btnStop3.Click += new System.EventHandler(btnStop3_Click);
		this.btnTest3.Location = new System.Drawing.Point(65, 78);
		this.btnTest3.Name = "btnTest3";
		this.btnTest3.Size = new System.Drawing.Size(75, 23);
		this.btnTest3.TabIndex = 1;
		this.btnTest3.Text = "开始";
		this.btnTest3.UseVisualStyleBackColor = true;
		this.btnTest3.Click += new System.EventHandler(btnTest3_Click);
		this.txtVacuumAll.Location = new System.Drawing.Point(144, 36);
		this.txtVacuumAll.Name = "txtVacuumAll";
		this.txtVacuumAll.Size = new System.Drawing.Size(95, 25);
		this.txtVacuumAll.TabIndex = 1;
		this.txtVacuumAll.Text = "0.005";
		this.groupBox5.Controls.Add(this.label2);
		this.groupBox5.Controls.Add(this.btnStop2);
		this.groupBox5.Controls.Add(this.btnTest2);
		this.groupBox5.Controls.Add(this.txtVacuumLens);
		this.groupBox5.Location = new System.Drawing.Point(16, 15);
		this.groupBox5.Name = "groupBox5";
		this.groupBox5.Size = new System.Drawing.Size(258, 125);
		this.groupBox5.TabIndex = 0;
		this.groupBox5.TabStop = false;
		this.groupBox5.Text = "腔体检漏";
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(28, 49);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(112, 15);
		this.label2.TabIndex = 1;
		this.label2.Text = "透镜真空上限：";
		this.btnStop2.Location = new System.Drawing.Point(146, 90);
		this.btnStop2.Name = "btnStop2";
		this.btnStop2.Size = new System.Drawing.Size(75, 23);
		this.btnStop2.TabIndex = 1;
		this.btnStop2.Text = "停止";
		this.btnStop2.UseVisualStyleBackColor = true;
		this.btnStop2.Click += new System.EventHandler(btnStop2_Click);
		this.btnTest2.Location = new System.Drawing.Point(65, 90);
		this.btnTest2.Name = "btnTest2";
		this.btnTest2.Size = new System.Drawing.Size(75, 23);
		this.btnTest2.TabIndex = 1;
		this.btnTest2.Text = "开始";
		this.btnTest2.UseVisualStyleBackColor = true;
		this.btnTest2.Click += new System.EventHandler(btnTest2_Click);
		this.txtVacuumLens.Location = new System.Drawing.Point(144, 46);
		this.txtVacuumLens.Name = "txtVacuumLens";
		this.txtVacuumLens.Size = new System.Drawing.Size(95, 25);
		this.txtVacuumLens.TabIndex = 1;
		this.txtVacuumLens.Text = "0.005";
		this.groupBox4.Controls.Add(this.label5);
		this.groupBox4.Controls.Add(this.txtVacuumInt);
		this.groupBox4.Controls.Add(this.btnStop1);
		this.groupBox4.Controls.Add(this.btnTest1);
		this.groupBox4.Location = new System.Drawing.Point(16, 163);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Size = new System.Drawing.Size(258, 126);
		this.groupBox4.TabIndex = 0;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "接口检漏";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(28, 51);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(112, 15);
		this.label5.TabIndex = 1;
		this.label5.Text = "接口真空上限：";
		this.txtVacuumInt.Location = new System.Drawing.Point(144, 48);
		this.txtVacuumInt.Name = "txtVacuumInt";
		this.txtVacuumInt.Size = new System.Drawing.Size(95, 25);
		this.txtVacuumInt.TabIndex = 1;
		this.txtVacuumInt.Text = "0.005";
		this.btnStop1.Location = new System.Drawing.Point(146, 97);
		this.btnStop1.Name = "btnStop1";
		this.btnStop1.Size = new System.Drawing.Size(75, 23);
		this.btnStop1.TabIndex = 1;
		this.btnStop1.Text = "停止";
		this.btnStop1.UseVisualStyleBackColor = true;
		this.btnStop1.Click += new System.EventHandler(btnStop1_Click);
		this.btnTest1.Location = new System.Drawing.Point(65, 97);
		this.btnTest1.Name = "btnTest1";
		this.btnTest1.Size = new System.Drawing.Size(75, 23);
		this.btnTest1.TabIndex = 1;
		this.btnTest1.Text = "开始";
		this.btnTest1.UseVisualStyleBackColor = true;
		this.btnTest1.Click += new System.EventHandler(btnTest1Vacuum1_Click);
		this.graphLens.Location = new System.Drawing.Point(625, 328);
		this.graphLens.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4);
		this.graphLens.Name = "graphLens";
		this.graphLens.ScrollGrace = 0.0;
		this.graphLens.ScrollMaxX = 0.0;
		this.graphLens.ScrollMaxY = 0.0;
		this.graphLens.ScrollMaxY2 = 0.0;
		this.graphLens.ScrollMinX = 0.0;
		this.graphLens.ScrollMinY = 0.0;
		this.graphLens.ScrollMinY2 = 0.0;
		this.graphLens.Size = new System.Drawing.Size(679, 301);
		this.graphLens.TabIndex = 69;
		this.graphInt.Location = new System.Drawing.Point(625, 9);
		this.graphInt.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4);
		this.graphInt.Name = "graphInt";
		this.graphInt.ScrollGrace = 0.0;
		this.graphInt.ScrollMaxX = 0.0;
		this.graphInt.ScrollMaxY = 0.0;
		this.graphInt.ScrollMaxY2 = 0.0;
		this.graphInt.ScrollMinX = 0.0;
		this.graphInt.ScrollMinY = 0.0;
		this.graphInt.ScrollMinY2 = 0.0;
		this.graphInt.Size = new System.Drawing.Size(679, 311);
		this.graphInt.TabIndex = 69;
		this.graphInt.Load += new System.EventHandler(graphInt_Load);
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 15f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1558, 848);
		base.Controls.Add(this.tabControl1);
		base.Controls.Add(this.lblVersion);
		base.Margin = new System.Windows.Forms.Padding(4);
		base.Name = "FormVacuum";
		base.ShowIcon = false;
		this.Text = "FormVacuum";
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormVacuum_FormClosing);
		base.Load += new System.EventHandler(FormVacuum_Load);
		this.groupBox3.ResumeLayout(false);
		this.gbTurbo2.ResumeLayout(false);
		this.gbTurbo2.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.picTurboStatus2).EndInit();
		this.gbTurbo1.ResumeLayout(false);
		this.gbTurbo1.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.picTurboStatus1).EndInit();
		this.gbValve.ResumeLayout(false);
		this.gbControl.ResumeLayout(false);
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.gbControl1.ResumeLayout(false);
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		this.gbGauge.ResumeLayout(false);
		this.panel1.ResumeLayout(false);
		this.tabControl1.ResumeLayout(false);
		this.tabPage1.ResumeLayout(false);
		this.tabPage2.ResumeLayout(false);
		this.panel2.ResumeLayout(false);
		this.groupBox9.ResumeLayout(false);
		this.groupBox8.ResumeLayout(false);
		this.groupBox7.ResumeLayout(false);
		this.groupBox7.PerformLayout();
		this.groupBox6.ResumeLayout(false);
		this.groupBox6.PerformLayout();
		this.groupBox5.ResumeLayout(false);
		this.groupBox5.PerformLayout();
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		base.ResumeLayout(false);
	}
}
